Skip to content

Clean up worktrees when archiving threads - #13

Open
tim-smart wants to merge 4 commits into
t3code/truncate-mobile-footerfrom
t3code/cleanup-archived-worktrees
Open

Clean up worktrees when archiving threads#13
tim-smart wants to merge 4 commits into
t3code/truncate-mobile-footerfrom
t3code/cleanup-archived-worktrees

Conversation

@tim-smart

Copy link
Copy Markdown
Owner

Summary

  • Add server-authoritative cleanup for the last active thread linked to a worktree, while preserving shared worktrees and branches.
  • Prompt on web and mobile before removal, stop associated provider sessions, and report nonfatal cleanup failures.
  • Recreate missing worktrees when threads are unarchived and rerun project setup.
  • Remove legacy background-service and server self-update infrastructure, with related UI and documentation cleanup.

Testing

  • Added focused coverage for worktree cleanup, restoration, concurrency, projection queries, and provider shutdown behavior.
  • Added client-runtime and mobile prompt tests for archive confirmation and cleanup outcomes.
  • Not run; test execution results were not included in the supplied change details.

@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from 5ba5539 to 72a3336 Compare July 23, 2026 21:20
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from ace56f7 to 2dae1a1 Compare July 24, 2026 00:44
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from 7e08a6b to 923f77a Compare July 24, 2026 03:34
@github-actions github-actions Bot added size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Jul 24, 2026
@tim-smart
tim-smart changed the base branch from main to t3code/truncate-mobile-footer July 24, 2026 03:34
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from 9f8ba9d to e59bc3a Compare July 24, 2026 08:52
@tim-smart
tim-smart force-pushed the t3code/truncate-mobile-footer branch from 82ba74e to bb5e025 Compare July 24, 2026 08:52
@github-actions
github-actions Bot force-pushed the t3code/truncate-mobile-footer branch from bb5e025 to f4e374a Compare July 24, 2026 09:40
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from 9defffa to a7d163e Compare July 24, 2026 14:12
@github-actions
github-actions Bot force-pushed the t3code/truncate-mobile-footer branch from f4e374a to 6bed79d Compare July 24, 2026 14:12
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from a7d163e to a23f42d Compare July 25, 2026 10:26
@tim-smart
tim-smart force-pushed the t3code/truncate-mobile-footer branch from 6bed79d to 1b7d444 Compare July 25, 2026 10:26
@github-actions
github-actions Bot force-pushed the t3code/truncate-mobile-footer branch from 1b7d444 to ff7f797 Compare July 27, 2026 04:02
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from c958bb4 to e6f1b06 Compare July 27, 2026 10:08
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 27, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 27, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.
@tim-smart
tim-smart force-pushed the t3code/truncate-mobile-footer branch from 26369a0 to a7ee66e Compare July 28, 2026 00:30
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from e6f1b06 to 7c4acbf Compare July 28, 2026 00:30
- Prompt to remove the last active worktree when archiving
- Restore missing worktrees on unarchive and retain shared worktrees
- Stop provider sessions reliably after archival
Allow up to 30 seconds for Git worktree cleanup to complete.
@github-actions
github-actions Bot force-pushed the t3code/truncate-mobile-footer branch from a7ee66e to 79543fe Compare July 28, 2026 03:34
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch from 7c4acbf to a14221b Compare July 28, 2026 03:34
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 28, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant